<?php
class AttributeSet // Serves as a struct
{
	public $id 			= -1;
	public $attributes 	= array();
	
	function __construct($row)
	{
		$this->id = array_shift($row);
		$this->attributes = $row;
	}
	
	function ToString()
	{
		$returnString = "";
		while ($attribute = current($this->attributes))
		{
			$returnString .= "\n" .key($this->attributes) ." = " .$attribute;
			next($this->attributes);
		}
		return $returnString;
	}
}
?>